from TestModel.models import HeadlineTable, ContentTable


def searchHeadline():
    return list(HeadlineTable.objects.all())


def searchContentById(id):
    return list(ContentTable.objects.filter(headline_id=id))


def deleteAllData():
    ContentTable.objects.all().delete()
    HeadlineTable.objects.all().delete()
